package com.xjh.bo;

import com.ejlchina.searcher.bean.DbField;
import com.ejlchina.searcher.bean.SearchBean;
import com.ejlchina.searcher.param.Operator;
import lombok.Data;

import java.math.BigDecimal;
import java.util.Date;

/**
 * @Auther:XuJianHua
 * @Date:2022/10/13
 * @Description: 测试bean-search
 */
@Data
@SearchBean(tables = "student s, account a", joinCond = "s.id = a.stu_id", autoMapTo = "s")
public class BeanSearchStudentBO {


    private Long id;
    private String stuName;
    private String stuSex;
    private Date stuBirthday;
    private Long classId;

    // 从表字段要加注释

    /**
     * 学生id
     */
    @DbField("a.stu_id")
    private Long stuId;

    /**
     * 账户余额
     */
    // @DbField(value ="a.money",onlyOn = {Operator.Equal, Operator.StartWith})
    @DbField(value ="a.money")


    private BigDecimal money;

    // Getter and Setter ...
}
